// vite.config.ts
import { defineConfig } from "file:///E:/tetrisv3/tetris-v3/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/tetrisv3/tetris-v3/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import AutoImport from "file:///E:/tetrisv3/tetris-v3/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/tetrisv3/tetris-v3/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///E:/tetrisv3/tetris-v3/node_modules/unplugin-vue-components/dist/resolvers.js";
import tailwindcss from "file:///E:/tetrisv3/tetris-v3/node_modules/tailwindcss/lib/index.js";
import autoprefixer from "file:///E:/tetrisv3/tetris-v3/node_modules/autoprefixer/lib/autoprefixer.js";
import { VitePWA } from "file:///E:/tetrisv3/tetris-v3/node_modules/vite-plugin-pwa/dist/index.js";
import viteCompression from "file:///E:/tetrisv3/tetris-v3/node_modules/vite-plugin-compression/dist/index.mjs";
import { createSvgIconsPlugin } from "file:///E:/tetrisv3/tetris-v3/node_modules/vite-plugin-svg-icons/dist/index.mjs";
var __vite_injected_original_dirname = "E:\\tetrisv3\\tetris-v3";
var vite_config_default = defineConfig({
  resolve: {
    extensions: [".vue", ".ts"],
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, ".", "src")
    }
  },
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    }),
    VitePWA({
      registerType: "autoUpdate",
      devOptions: {
        enabled: true,
        type: "module"
      },
      workbox: {
        runtimeCaching: [
          {
            urlPattern: /.*/,
            handler: "StaleWhileRevalidate"
          }
        ],
        maximumFileSizeToCacheInBytes: 4 * 1024 * 1024
        // 需要缓存的最大文件大小
      },
      manifest: {
        "name": "Tetris V3",
        "short_name": "Tetris V3",
        "description": "A Tetris game, running on the web, responsive and installable.",
        "display": "standalone",
        "theme_color": "#111",
        "start_url": "/",
        "icons": [
          {
            "src": "/icon.png",
            "type": "image/png",
            "sizes": "171x171"
          }
        ],
        "orientation": "any",
        "background_color": "#fff",
        "lang": "en",
        "categories": [
          "game"
        ],
        "screenshots": [
          {
            "src": "/sssample.jpg",
            "type": "image/jpg",
            "sizes": "414x736",
            "form_factor": "narrow"
          }
        ]
      }
    }),
    viteCompression({
      // 压缩
      verbose: true,
      disable: false,
      threshold: 10240,
      algorithm: "gzip",
      ext: ".gz"
    }),
    createSvgIconsPlugin({
      iconDirs: [path.resolve(process.cwd(), "src/assets/svg")],
      symbolId: "icon-[dir]-[name]"
    })
  ],
  server: {
    host: "0.0.0.0"
  },
  css: {
    postcss: {
      plugins: [
        tailwindcss,
        autoprefixer
      ]
    }
  },
  build: {
    rollupOptions: {
      // 打包后文件名不哈希化
      output: {
        entryFileNames: `[name].js`,
        chunkFileNames: `module/[name].js`,
        assetFileNames: `assets/[name].[ext]`
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFx0ZXRyaXN2M1xcXFx0ZXRyaXMtdjNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkU6XFxcXHRldHJpc3YzXFxcXHRldHJpcy12M1xcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRTovdGV0cmlzdjMvdGV0cmlzLXYzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12dWUnXHJcbmltcG9ydCB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4gICAgVml0ZVBXQSh7XHJcbiAgICAgIHJlZ2lzdGVyVHlwZTogJ2F1dG9VcGRhdGUnLFxyXG4gICAgICBkZXZPcHRpb25zOiB7XHJcbiAgICAgICAgZW5hYmxlZDogdHJ1ZSxcclxuICAgICAgICB0eXBlOiAnbW9kdWxlJ1xyXG4gICAgICB9LFxyXG4gICAgICB3b3JrYm94OiB7XHJcbiAgICAgICAgcnVudGltZUNhY2hpbmc6IFtcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgdXJsUGF0dGVybjogLy4qLyxcclxuICAgICAgICAgICAgaGFuZGxlcjogJ1N0YWxlV2hpbGVSZXZhbGlkYXRlJ1xyXG4gICAgICAgICAgfVxyXG4gICAgICAgIF0sXHJcbiAgICAgICAgbWF4aW11bUZpbGVTaXplVG9DYWNoZUluQnl0ZXM6IDQgKiAxMDI0ICogMTAyNCAvLyBcdTk3MDBcdTg5ODFcdTdGMTNcdTVCNThcdTc2ODRcdTY3MDBcdTU5MjdcdTY1ODdcdTRFRjZcdTU5MjdcdTVDMEZcclxuICAgICAgfSxcclxuICAgICAgbWFuaWZlc3Q6IHtcclxuICAgICAgICBcIm5hbWVcIjogXCJUZXRyaXMgVjNcIixcclxuICAgICAgICBcInNob3J0X25hbWVcIjogXCJUZXRyaXMgVjNcIixcclxuICAgICAgICBcImRlc2NyaXB0aW9uXCI6IFwiQSBUZXRyaXMgZ2FtZSwgcnVubmluZyBvbiB0aGUgd2ViLCByZXNwb25zaXZlIGFuZCBpbnN0YWxsYWJsZS5cIixcclxuICAgICAgICBcImRpc3BsYXlcIjogXCJzdGFuZGFsb25lXCIsXHJcbiAgICAgICAgXCJ0aGVtZV9jb2xvclwiOiBcIiMxMTFcIixcclxuICAgICAgICBcInN0YXJ0X3VybFwiOiBcIi9cIixcclxuICAgICAgICBcImljb25zXCI6IFtcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgXCJzcmNcIjogXCIvaWNvbi5wbmdcIixcclxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiaW1hZ2UvcG5nXCIsXHJcbiAgICAgICAgICAgIFwic2l6ZXNcIjogXCIxNzF4MTcxXCJcclxuICAgICAgICAgIH1cclxuICAgICAgICBdLFxyXG4gICAgICAgIFwib3JpZW50YXRpb25cIjogXCJhbnlcIixcclxuICAgICAgICBcImJhY2tncm91bmRfY29sb3JcIjogXCIjZmZmXCIsXHJcbiAgICAgICAgXCJsYW5nXCI6IFwiZW5cIixcclxuICAgICAgICBcImNhdGVnb3JpZXNcIjogW1xyXG4gICAgICAgICAgXCJnYW1lXCJcclxuICAgICAgICBdLFxyXG4gICAgICAgIFwic2NyZWVuc2hvdHNcIjogW1xyXG4gICAgICAgICAge1xyXG4gICAgICAgICAgICBcInNyY1wiOiBcIi9zc3NhbXBsZS5qcGdcIixcclxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiaW1hZ2UvanBnXCIsXHJcbiAgICAgICAgICAgIFwic2l6ZXNcIjogXCI0MTR4NzM2XCIsXHJcbiAgICAgICAgICAgIFwiZm9ybV9mYWN0b3JcIjogXCJuYXJyb3dcIlxyXG4gICAgICAgICAgfVxyXG4gICAgICAgIF1cclxuICAgICAgfVxyXG4gICAgfSksXHJcbiAgICB2aXRlQ29tcHJlc3Npb24oeyAvLyBcdTUzOEJcdTdGMjlcclxuICAgICAgdmVyYm9zZTogdHJ1ZSxcclxuICAgICAgZGlzYWJsZTogZmFsc2UsXHJcbiAgICAgIHRocmVzaG9sZDogMTAyNDAsXHJcbiAgICAgIGFsZ29yaXRobTogJ2d6aXAnLFxyXG4gICAgICBleHQ6ICcuZ3onLFxyXG4gICAgfSksXHJcbiAgICBjcmVhdGVTdmdJY29uc1BsdWdpbih7XHJcbiAgICAgIGljb25EaXJzOiBbcGF0aC5yZXNvbHZlKHByb2Nlc3MuY3dkKCksICdzcmMvYXNzZXRzL3N2ZycpXSxcclxuICAgICAgc3ltYm9sSWQ6ICdpY29uLVtkaXJdLVtuYW1lXScsXHJcbiAgICB9K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